﻿@model IEnumerable<FoursquareTask.TOs.VenueTO>

@{
    ViewBag.Title = "Search results";
}

<h2>Search results</h2>

<p>This text was searched for exactly <span class="bold">@ViewBag.SearchedFor</span> times.</p>
<table class="table">
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.Name)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Checkins)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.HereNow)
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            <a href="@item.CanonicalUrl">@Html.DisplayFor(modelItem => item.Name)</a>
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Checkins)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.HereNow)
        </td>        
    </tr>
}

</table>
